package pushtest.mobike.com.mtpush

import android.app.Application
import android.content.Context
import android.support.multidex.MultiDex
import pushtest.mobike.com.mtpush.di.component.DaggerAppComponent
import pushtest.mobike.com.mtpush.di.module.AppModule
import timber.log.Timber

/**
 * @author  wangxiaolong
 * @time    17/08/2018
 * @desc
 */
class MTApplication : Application() {

  override fun attachBaseContext(base: Context?) {
    super.attachBaseContext(base)
    MultiDex.install(this);
  }

  private val PUSH_PASSWORD = "dp-push-password_sample"    //此处使用您在Push服务后端注册得到的Password替换
  override fun onCreate() {
    super.onCreate()
    DaggerAppComponent.builder().appModule(AppModule(this)).build()
    Timber.plant(Timber.DebugTree())

//    initMTPush()
    if (!isMainProcess()) return
  }

}